{% extends "base.html" %}
{% block left_content %}
<!--leftmenu左侧菜单栏-->
<div id="left_menu">
    <div>
        <div class="menu_head"><span class="glyphicon glyphicon-cog"> </span> <label>自动化运维</label><span class="caret"></span></div>
        <ul class="left_menu_ul">
            <a href="{% url 'saltstack:nodeList' %}"><li><span class="glyphicon glyphicon-briefcase"> </span> 主机列表</li></a>
            <a href="{% url 'saltstack:keyList' %}"><li><span class="glyphicon glyphicon-send"> </span> salt-key管理</li></a>
            <a href="{% url 'saltstack:commands' %}"><li><span class="glyphicon glyphicon-log-in"> </span> 命令行工具</li></a>
            <a href="{% url 'saltstack:logs' %}"><li><span class="glyphicon glyphicon-list-alt"> </span> 日志记录</li></a>
        </ul>
    </div>
</div>
<script type="text/javascript">
    //左侧下拉菜单
    $(".menu_head").click(function(){
        if($(this).next().css("display")=='none'){
            $(this).next().show();
        }else{
            $(this).next().hide();
        }
    });
</script>
{% endblock %}


